﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

//This class is to be implemented as Image object
namespace ProtoImaginer.ProtoPage
{
    public class Image
    {
        private int pageId;
        private int id; //related to db
        private string title;
        private int sequence; //let's say the sequence id assigned to this page within the project, e.g. 1, 2, 3
        private Guid bg_name; //unique name of background image
        private DateTime createDate;
        private DateTime lastModifiedDate;
        private int status;
        private List<Control> controlList;

         public Image(int pageId, Guid bg_name)
            {
                this.pageId = pageId;
                this.bg_name = bg_name;
                createDate = DateTime.Now;
                lastModifiedDate = DateTime.Now;
                status = (int)GlobalVariables.pageStatus.Independent;
            }

         public Image(int pageId, String title, Guid bg_name)
            {
                this.pageId = pageId;
                this.bg_name = bg_name;
                this.title = title;
                createDate = DateTime.Now;
                lastModifiedDate = DateTime.Now;
                status = (int)GlobalVariables.pageStatus.Independent;
            }

            public int PageId
            {
                get { return pageId; }
                set { pageId = value; }
            }

            public int Id
            {
                get { return id; }
                set { id = value; }
            }

            public String Title
            {
                get { return title; }
                set { title = value; }
            }

            public int Sequence
            {
                get { return sequence; }
                set { sequence = value; }
            }

            public Guid Bg_name
            {
                get { return bg_name; }
                set { bg_name = value; }
            }

            public DateTime CreateDate
            {
                get { return createDate; }
                set { createDate = value; }
            }

            public DateTime LastModifiedDate
            {
                get { return lastModifiedDate; }
                set { lastModifiedDate = DateTime.Now; }
            }

            public int Status
            {
                get { return status; }
                set { status = value; }
            }

            public List<Control> ControlList
            {
                get { return controlList; }
                set { controlList = value; }
            }

            public void addControl()
            {

            }

            public void deleteControl()
            {

            }
    }
}
